#ifndef ENEMY1_H
#define ENEMY1_H

#include <QObject>
#include <QPoint>
#include <QSize>
#include <QPixmap>


class waypoint;
class QPainter;
class window3;
class towerbase1;

class Enemy1 : public QObject
{
    Q_OBJECT
public:
    Enemy1(waypoint *startWayPoint, window3 *game1, const QPixmap &sprite = QPixmap(":/fls.png"));
    ~Enemy1();
    void draw(QPainter *painter) const;
    void move();
    QPoint pos() const;
    void get_damage(int damage);
    void get_attacked(towerbase1 *attacker);
    void get_lostsight(towerbase1 *attacker);
    void getRemoved();
public slots:
    void doActivate();

private:
    bool can_move;
    int _Hp;
    int	_currentHp;
    qreal _speed;
    qreal _rotation;

    QPoint _pos;
    waypoint *_destination_point;
    window3 *_game1;
    QList<towerbase1 *>	m_attackedTowersList;

    const QPixmap _pic;
    static const QSize ms_fixedSize;
};

#endif // ENEMY1_H
